package com.huanzhidadi.single.parentsubclass;

public class SubClass extends ParentClass {

    static {
        System.out.println("子类静态块2");
    }
    static {
        System.out.println("子类静态块1");
    }

    public SubClass() {
        System.out.println("子类构造方法");
    }

    {
        System.out.println("子类非静态代码块2");
    }
    {
        System.out.println("子类非静态代码块1");
    }

    public void doSth() {
        System.out.println("子类方法");
        super.doSth();
    }

}
